<template>
	<view class="InvitationList">
		<view class="jilu" v-for="item in listBox">
			<view class="left">
				<image class="img" :src="item.userDO.avatarUrl" mode=""></image>
				<text class="name">{{item.userDO.nickname}} {{item.userDO.phone}}</text>
			</view>
			<view class="right">
				<text class="name">{{ formatDate(item.userDO.gmtCreate)}}</text>
			</view>
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				listBox: []
			};
		},
		methods: {
			listin() {
				let that=this
				that.$api.request('activity','invitationList',  failres => {
					that.logining = false
					that.$api.msg(failres.errmsg)
				}).then(res => {
					this.listBox=res.data

				})
			},
			formatDate(date) {
			  var date = new Date(date);
			  var YY = date.getFullYear() + '-';
			  var MM = (date.getMonth() + 1 < 10 ? '0' + (date.getMonth() + 1) : date.getMonth() + 1) + '-';
			  var DD = (date.getDate() < 10 ? '0' + (date.getDate()) : date.getDate());
			  var hh = (date.getHours() < 10 ? '0' + date.getHours() : date.getHours()) + ':';
			  var mm = (date.getMinutes() < 10 ? '0' + date.getMinutes() : date.getMinutes()) + ':';
			  var ss = (date.getSeconds() < 10 ? '0' + date.getSeconds() : date.getSeconds());
			  return YY + MM + DD +" "+hh + mm + ss;
			}
		},
		mounted() {
			this.listin()
		}
	}
</script>

<style lang="scss" scoped>
	.jilu {
		width: 710rpx;
		height: 108rpx;
		background: #F2F2F2;
		border-radius: 8rpx;
		margin-left: 20rpx;
		margin-bottom: 5rpx;
		padding-left: 16rpx;
		padding-right: 16rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;
	
		.right {
			display: flex;
			height: 108rpx;
			align-items: center;
	
			.jinea {
				font-size: 30rpx;
				color: #36B542;
				font-weight: 600;
			}
	
			.name {
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
			}
	
		}
	
		.left {
			display: flex;
			height: 108rpx;
			align-items: center;
	
			.name {
				margin-left: 16rpx;
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #333333;
			}
	
			.img {
				width: 60rpx;
				height: 60rpx;
				border-radius: 100%;
			}
		}
	}
	.InvitationList{
		min-height: 100vh;
		background-color: #F6F5FA;
		width: 100%;
		color: #1B1C33;
		font-size: 32rpx;
		.listBox{
			display: flex;
			align-items: center;
			padding-left: 15px;
			background-color: #fff;
			width: 100%;
			border-top: 1px solid #F6F5FA;
			padding: 14rpx 30rpx;
			.index{
				
			}
			.img{
				width: 35px;
				height: 35px;
				border-radius: 50%;
				margin: 0 47px 0 37px;
			}
			.name{
				
			}
		}
	}
</style>
